#!/bin/sh /etc/rc.common

USE_PROCD=1  # ...... procd ..................
START=99     # ...............
STOP=10      # ...............

DAEMON="/root/dkdns"
PIDFILE="/var/run/dkdns.pid"

start_service() {
    procd_open_instance
    procd_set_param command $DAEMON          # ........................
    procd_set_param pidfile $PIDFILE        # ...... PID ......
    procd_set_param respawn 10 5 5          # .....................10..............................5............5...
    procd_set_param stdout 1                # .....................
    procd_set_param stderr 1                # .....................
    procd_close_instance
}

stop_service() {
    procd_kill $DAEMON  # ............
}

